home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16370 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1001 b 

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Problem with exceptions. Borland c++
  5. Date: 10 Apr 1996 15:39:21 GMT
  6. Organization: Borland International
  7. Message-ID: <4kgkn9$6lm@druid.borland.com>
  8. References: <4kcns7$5rb@service-2.agate.net>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <4kcns7$5rb@service-2.agate.net>, ettienne@agate.net says...
  15. >
  16. >I'm running into a problem while throwing an exception. The exception
  17. >object on the stack is being desctructed twice. Is there any info
  18. >about how Borland implement the exceptions, so I can see what I'm
  19. >corrupting? The rtl source code does not include the the exception
  20. >handlers.
  21.  
  22. If you create your exception object on the stack it will be copied using the 
  23. copy constructor, then in the course of stack cleanup its destructor will be 
  24. run. Eventually the copy's destructor will also be run.
  25.  
  26.